#include <iostream>
using namespace std;
#include <iomanip>
using std::setw;
#include <cmath>
#include <cstring>
#include<list>
#include<vector>

void statistic_str(int * count,string & Str)
{
	string::iterator iter;
	for (iter= Str.begin();  iter!= Str.end(); ++iter)
	{
		if(*iter>='A'&& *iter<='Z') count[0]++;
		if(*iter>='a'&& *iter<='z') count[0]++;
		if(*iter>='0'&& *iter<='9') count[1]++;
		if(*iter==' ') count[2]++;
	 } 
}

int main()
{
	string Str="asdasd123123   a";
	int count[3]={0,0,0};
	statistic_str(count,Str);
	cout << count[0] << " "<< count[1] << " "<< count[2];
	return 0;
}
